<template>
  <div id="app">
    <router-view v-if="isRouterAlive"/>
      
  </div>
</template>
<script>
export default {
  // 刷新当前页面
  provide() {
    return {
      reload:this.reload
    };
  },
  // 刷新当前页面
  data(){
    return {
    isRouterAlive:true
    }
  },
  methods:{
    reload(){
      this.isRouterAlive = false
      this.$nextTick(function(){
        this.isRouterAlive = true
      })
    }
  },
  mounted() {

  },
  methods: {

}
};
</script>
<style lang="scss">
#app{
  height: 100%;
}
</style>
